using Godot;
using System;

public partial class Mutant : Characters
{
    private Marker2D _hitboxPosition;
    private Area2D _hurtbox;
    public override void Initialize()
    {
        base.Initialize();
        _hitboxPosition = GetNode<Marker2D>("Hitposition");
        _hurtbox = GetNode<Area2D>("Hurtbox");
        _sight = GetNode<Sight>("Sight");
        _sight.BodyEntered += GetBody;
    }
    

    public void GetBody(Node body)
    {
        if (body is Characters)
        {
            (this._characterData as EnemyData).target = body.Name;
        }
    }

}
